package com.springcloud.consumer.Remote;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: SpringBootCloud
 * @description: 创建回调类  熔断器 相关
 * @author: 肖垚 1094890313@qq.com
 * @create: 2019年01月18日 11:26
 **/
@Component
public class HelloRemoteHystrix implements HelloRemote {

    @Override
    public String hello(@RequestParam(value = "name") String name) {
        //返回 熔断 消息
        return "hello" + name + ", 熔断 消息 ";
    }

    @Override
    public String hello2(@RequestParam(value = "name") String name) {
        //返回 熔断 消息
        return "hello2" + name + ", 熔断 消息 ";
    }
}